import java.util.Scanner;

public class Test13 {


    //井字棋
    public boolean checkWon(int[][] array) {
        // write code here
        int sum1 = 0;
        int sum2 = 0;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if(i == j){
                    sum1 += array[i][j];
                }
                if(i+j == 2){
                    sum2 += array[i][j];
                }
            }
        }
        //我把true全标出来
        if(sum1 == 3 || sum2 == 3){
            return true;
        }
        int [] array1 = new int[3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                array1[i]+=array[i][j];
            }
        }
        for (int i = 0; i < 3; i++) {
            if(array1[i] == 3){
                return true;
            }
        }
        int [] array2 = new int[3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                array2[j]+=array[i][j];
            }
        }
        for (int i = 0; i < 3; i++) {
            if(array2[i] == 3){
                return true;
            }
        }
return false;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        double sum = 0;
        //记录大写
        boolean p1 = false;
        //记录小写
        boolean p2 = false;
        //记录数字
        boolean p3 = false;
        //符号
        boolean p4 = false;
        //字母长度
        if(str.length() <= 4){
            sum+=5;
        }else if(str.length() <=7){
            sum+=10;
        }else {
            sum+=25;
        }
        //
        StringBuilder s1 = new StringBuilder();
        for (int i = 0; i < 26; i++) {
            s1.append((char) (97+i));
        }
        StringBuilder s2 = new StringBuilder();
        for (int i = 0; i < 26; i++) {
            s2.append((char) (65+i));
        }
        //如果有小写或大写字符
        for (int i = 0; i < 26; i++) {
            if (str.contains(s1.charAt(i)+"") ){
                sum += 10;
                p1 = true;
                break;
            }

        }
        for (int i = 0; i < 26; i++) {
            if(str.contains(s2.charAt(i)+"")){
                sum += 10;
                p2 = true;
                break;
            }
        }
        int p = 0;
        for (int i = 0; i <str.length() ; i++) {
            char c = (char) (str.charAt(i)-48);
            if(c <= 9){
                p++;
                p3 = true;
            }
        }
        sum = sum + (p>1?2:p)*10;
        p = 0;
        for (int i = 0; i <str.length() ; i++) {
            char c =str.charAt(i);
            if(!(c >= 48 && c<= 57) && !(c>=65 && c<= 90) && !(c >= 97&&c <= 122)){
                p++;
                p4 = true;
            }
        }
        sum = sum + (p>1?2.5:p)*10;
        if(p1 && p2 && p3 && p4){
            sum+=5;
        }else if((p1 || p2) && p3 &&p4){
            sum+=3;
        }else if((p1 || p2) && p3){
            sum+=2;
        }
        if(sum>=90){
            System.out.println("VERY_SECURE");
        }else if(sum>=80){
            System.out.println("SECURE");
        }else if(sum>=70){
            System.out.println("VERY_STRONG");
        }else if(sum>=60){
            System.out.println("STRONG");

        }else if(sum>=50){
            System.out.println("AVERAGE");

        }else if(sum>=25){
            System.out.println("WEAK");

        }else if(sum>=0){
            System.out.println("VERY_WEAK");
        }

    }
}
